<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>My Project: TiXmlPrinter类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_ti_xml_printer-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TiXmlPrinter类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="tinyxml_8h_source.html">tinyxml.h</a>&gt;</code></p>
<div class="dynheader">
类 TiXmlPrinter 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_ti_xml_printer.png" usemap="#TiXmlPrinter_map" alt=""/>
  <map id="TiXmlPrinter_map" name="TiXmlPrinter_map">
<area href="class_ti_xml_visitor.html" alt="TiXmlVisitor" shape="rect" coords="0,0,81,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a6539b864026c8667cd0bd5fdf4b41f43"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a6539b864026c8667cd0bd5fdf4b41f43">TiXmlPrinter</a> ()</td></tr>
<tr class="separator:a6539b864026c8667cd0bd5fdf4b41f43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ec73087db26ff4d2c4316c56f861db7"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a2ec73087db26ff4d2c4316c56f861db7">VisitEnter</a> (const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;doc)</td></tr>
<tr class="memdesc:a2ec73087db26ff4d2c4316c56f861db7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a document.  <a href="#a2ec73087db26ff4d2c4316c56f861db7">更多...</a><br /></td></tr>
<tr class="separator:a2ec73087db26ff4d2c4316c56f861db7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a636046fa589b6d7f3e5bd025b3f33e"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a0a636046fa589b6d7f3e5bd025b3f33e">VisitExit</a> (const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;doc)</td></tr>
<tr class="memdesc:a0a636046fa589b6d7f3e5bd025b3f33e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a document.  <a href="#a0a636046fa589b6d7f3e5bd025b3f33e">更多...</a><br /></td></tr>
<tr class="separator:a0a636046fa589b6d7f3e5bd025b3f33e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dccaf5ee4979f13877690afe28721e8"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a6dccaf5ee4979f13877690afe28721e8">VisitEnter</a> (const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;element, const <a class="el" href="class_ti_xml_attribute.html">TiXmlAttribute</a> *firstAttribute)</td></tr>
<tr class="memdesc:a6dccaf5ee4979f13877690afe28721e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an element.  <a href="#a6dccaf5ee4979f13877690afe28721e8">更多...</a><br /></td></tr>
<tr class="separator:a6dccaf5ee4979f13877690afe28721e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6a1df8271df4bf62d7873c38e34aa69"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#ae6a1df8271df4bf62d7873c38e34aa69">VisitExit</a> (const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;element)</td></tr>
<tr class="memdesc:ae6a1df8271df4bf62d7873c38e34aa69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an element.  <a href="#ae6a1df8271df4bf62d7873c38e34aa69">更多...</a><br /></td></tr>
<tr class="separator:ae6a1df8271df4bf62d7873c38e34aa69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adaf7eec4dc43ad071ff52b60361574f5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#adaf7eec4dc43ad071ff52b60361574f5">Visit</a> (const <a class="el" href="class_ti_xml_declaration.html">TiXmlDeclaration</a> &amp;declaration)</td></tr>
<tr class="memdesc:adaf7eec4dc43ad071ff52b60361574f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a declaration.  <a href="#adaf7eec4dc43ad071ff52b60361574f5">更多...</a><br /></td></tr>
<tr class="separator:adaf7eec4dc43ad071ff52b60361574f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0857c5d32c59b9a257f9a49cb9411df5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a0857c5d32c59b9a257f9a49cb9411df5">Visit</a> (const <a class="el" href="class_ti_xml_text.html">TiXmlText</a> &amp;text)</td></tr>
<tr class="memdesc:a0857c5d32c59b9a257f9a49cb9411df5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a text node.  <a href="#a0857c5d32c59b9a257f9a49cb9411df5">更多...</a><br /></td></tr>
<tr class="separator:a0857c5d32c59b9a257f9a49cb9411df5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9870423f5603630e6142f6bdb66dfb57"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a9870423f5603630e6142f6bdb66dfb57">Visit</a> (const <a class="el" href="class_ti_xml_comment.html">TiXmlComment</a> &amp;comment)</td></tr>
<tr class="memdesc:a9870423f5603630e6142f6bdb66dfb57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a comment node.  <a href="#a9870423f5603630e6142f6bdb66dfb57">更多...</a><br /></td></tr>
<tr class="separator:a9870423f5603630e6142f6bdb66dfb57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08591a15c9a07afa83c24e08b03d6358"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a08591a15c9a07afa83c24e08b03d6358">Visit</a> (const <a class="el" href="class_ti_xml_unknown.html">TiXmlUnknown</a> &amp;unknown)</td></tr>
<tr class="memdesc:a08591a15c9a07afa83c24e08b03d6358"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an unknow node.  <a href="#a08591a15c9a07afa83c24e08b03d6358">更多...</a><br /></td></tr>
<tr class="separator:a08591a15c9a07afa83c24e08b03d6358"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a213377a4070c7e625bae59716b089e5e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a213377a4070c7e625bae59716b089e5e">SetIndent</a> (const char *_indent)</td></tr>
<tr class="separator:a213377a4070c7e625bae59716b089e5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb33ec7d4bad6aaeb57f4304394b133d"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#abb33ec7d4bad6aaeb57f4304394b133d">Indent</a> ()</td></tr>
<tr class="memdesc:abb33ec7d4bad6aaeb57f4304394b133d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Query the indention string.  <a href="#abb33ec7d4bad6aaeb57f4304394b133d">更多...</a><br /></td></tr>
<tr class="separator:abb33ec7d4bad6aaeb57f4304394b133d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4be1e37e69e3858c59635aa947174fe6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a4be1e37e69e3858c59635aa947174fe6">SetLineBreak</a> (const char *_lineBreak)</td></tr>
<tr class="separator:a4be1e37e69e3858c59635aa947174fe6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11f1b4804a460b175ec244eb5724d96d"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a11f1b4804a460b175ec244eb5724d96d">LineBreak</a> ()</td></tr>
<tr class="memdesc:a11f1b4804a460b175ec244eb5724d96d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Query the current line breaking string.  <a href="#a11f1b4804a460b175ec244eb5724d96d">更多...</a><br /></td></tr>
<tr class="separator:a11f1b4804a460b175ec244eb5724d96d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab23a90629e374cb1cadca090468bbd19"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#ab23a90629e374cb1cadca090468bbd19">SetStreamPrinting</a> ()</td></tr>
<tr class="separator:ab23a90629e374cb1cadca090468bbd19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a859eede9597d3e0355b77757be48735e"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a859eede9597d3e0355b77757be48735e">CStr</a> ()</td></tr>
<tr class="memdesc:a859eede9597d3e0355b77757be48735e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the result.  <a href="#a859eede9597d3e0355b77757be48735e">更多...</a><br /></td></tr>
<tr class="separator:a859eede9597d3e0355b77757be48735e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad01375ae9199bd2f48252eaddce3039d"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#ad01375ae9199bd2f48252eaddce3039d">Size</a> ()</td></tr>
<tr class="memdesc:ad01375ae9199bd2f48252eaddce3039d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the length of the result string.  <a href="#ad01375ae9199bd2f48252eaddce3039d">更多...</a><br /></td></tr>
<tr class="separator:ad01375ae9199bd2f48252eaddce3039d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_ti_xml_visitor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_ti_xml_visitor')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_ti_xml_visitor.html">TiXmlVisitor</a></td></tr>
<tr class="memitem:a276c739ec4701f27c3f86b8ead095e5a inherit pub_methods_class_ti_xml_visitor"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#a276c739ec4701f27c3f86b8ead095e5a">~TiXmlVisitor</a> ()</td></tr>
<tr class="separator:a276c739ec4701f27c3f86b8ead095e5a inherit pub_methods_class_ti_xml_visitor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a348ad6527b1d43ddeb51454cddeb6a1d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a348ad6527b1d43ddeb51454cddeb6a1d">DoIndent</a> ()</td></tr>
<tr class="separator:a348ad6527b1d43ddeb51454cddeb6a1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a252a0e13e06def9a06b2eb30a04677a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a252a0e13e06def9a06b2eb30a04677a0">DoLineBreak</a> ()</td></tr>
<tr class="separator:a252a0e13e06def9a06b2eb30a04677a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a7e11330449daea912320c22f84387df7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a7e11330449daea912320c22f84387df7">depth</a></td></tr>
<tr class="separator:a7e11330449daea912320c22f84387df7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dceede5ae9bb8948f1ecaabb24ab2fb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a2dceede5ae9bb8948f1ecaabb24ab2fb">simpleTextPrint</a></td></tr>
<tr class="separator:a2dceede5ae9bb8948f1ecaabb24ab2fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6cc56c79e52ef352ecc612809fdbedf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tinyxml_8h.html#a92bada05fd84d9a0c9a5bbe53de26887">TIXML_STRING</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#ae6cc56c79e52ef352ecc612809fdbedf">buffer</a></td></tr>
<tr class="separator:ae6cc56c79e52ef352ecc612809fdbedf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a672fda389bb3f5a2ae8ead867f9a2536"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tinyxml_8h.html#a92bada05fd84d9a0c9a5bbe53de26887">TIXML_STRING</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a672fda389bb3f5a2ae8ead867f9a2536">indent</a></td></tr>
<tr class="separator:a672fda389bb3f5a2ae8ead867f9a2536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25e8120bcfda10cc06a11b2dedcef7fe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tinyxml_8h.html#a92bada05fd84d9a0c9a5bbe53de26887">TIXML_STRING</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_printer.html#a25e8120bcfda10cc06a11b2dedcef7fe">lineBreak</a></td></tr>
<tr class="separator:a25e8120bcfda10cc06a11b2dedcef7fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Print to memory functionality. The <a class="el" href="class_ti_xml_printer.html">TiXmlPrinter</a> is useful when you need to:</p>
<ol type="1">
<li>Print to memory (especially in non-STL mode)</li>
<li>Control formatting (line endings, etc.)</li>
</ol>
<p>When constructed, the <a class="el" href="class_ti_xml_printer.html">TiXmlPrinter</a> is in its default "pretty printing" mode. Before calling Accept() you can call methods to control the printing of the XML document. After <a class="el" href="class_ti_xml_node.html#acc0f88b7462c6cb73809d410a4f5bb86">TiXmlNode::Accept()</a> is called, the printed document can be accessed via the <a class="el" href="class_ti_xml_printer.html#a859eede9597d3e0355b77757be48735e" title="Return the result. ">CStr()</a>, Str(), and <a class="el" href="class_ti_xml_printer.html#ad01375ae9199bd2f48252eaddce3039d" title="Return the length of the result string. ">Size()</a> methods.</p>
<p><a class="el" href="class_ti_xml_printer.html">TiXmlPrinter</a> uses the Visitor API. </p><pre class="fragment">TiXmlPrinter printer;
printer.SetIndent( "\t" );

doc.Accept( &amp;printer );
fprintf( stdout, "%s", printer.CStr() );
</pre> </div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a6539b864026c8667cd0bd5fdf4b41f43"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TiXmlPrinter::TiXmlPrinter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a859eede9597d3e0355b77757be48735e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* TiXmlPrinter::CStr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the result. </p>

</div>
</div>
<a class="anchor" id="a348ad6527b1d43ddeb51454cddeb6a1d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TiXmlPrinter::DoIndent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a252a0e13e06def9a06b2eb30a04677a0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TiXmlPrinter::DoLineBreak </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="abb33ec7d4bad6aaeb57f4304394b133d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* TiXmlPrinter::Indent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Query the indention string. </p>

</div>
</div>
<a class="anchor" id="a11f1b4804a460b175ec244eb5724d96d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* TiXmlPrinter::LineBreak </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Query the current line breaking string. </p>

</div>
</div>
<a class="anchor" id="a213377a4070c7e625bae59716b089e5e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TiXmlPrinter::SetIndent </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>_indent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the indent characters for printing. By default 4 spaces but tab () is also useful, or null/empty string for no indentation. </p>

</div>
</div>
<a class="anchor" id="a4be1e37e69e3858c59635aa947174fe6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TiXmlPrinter::SetLineBreak </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>_lineBreak</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the line breaking string. By default set to newline (<br />
). Some operating systems prefer other characters, or can be set to the null/empty string for no indenation. </p>

</div>
</div>
<a class="anchor" id="ab23a90629e374cb1cadca090468bbd19"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void TiXmlPrinter::SetStreamPrinting </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Switch over to "stream printing" which is the most dense formatting without linebreaks. Common when the XML is needed for network transmission. </p>

</div>
</div>
<a class="anchor" id="ad01375ae9199bd2f48252eaddce3039d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t TiXmlPrinter::Size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the length of the result string. </p>

</div>
</div>
<a class="anchor" id="adaf7eec4dc43ad071ff52b60361574f5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::Visit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_declaration.html">TiXmlDeclaration</a> &amp;&#160;</td>
          <td class="paramname"><em>declaration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a declaration. </p>

<p>重载 <a class="el" href="class_ti_xml_visitor.html#a53f2b1069cb2ac8169be1fecefa26d4f">TiXmlVisitor</a> .</p>

</div>
</div>
<a class="anchor" id="a0857c5d32c59b9a257f9a49cb9411df5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::Visit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_text.html">TiXmlText</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a text node. </p>

<p>重载 <a class="el" href="class_ti_xml_visitor.html#a0d2b6e4f42f153243cc595ae0bc78306">TiXmlVisitor</a> .</p>

</div>
</div>
<a class="anchor" id="a9870423f5603630e6142f6bdb66dfb57"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::Visit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_comment.html">TiXmlComment</a> &amp;&#160;</td>
          <td class="paramname"><em>comment</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a comment node. </p>

<p>重载 <a class="el" href="class_ti_xml_visitor.html#a5c615a6011e312e6da528f2b666b03b8">TiXmlVisitor</a> .</p>

</div>
</div>
<a class="anchor" id="a08591a15c9a07afa83c24e08b03d6358"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::Visit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_unknown.html">TiXmlUnknown</a> &amp;&#160;</td>
          <td class="paramname"><em>unknown</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit an unknow node. </p>

<p>重载 <a class="el" href="class_ti_xml_visitor.html#aa0eef40a3bcc80f9d12993935b3da1ab">TiXmlVisitor</a> .</p>

</div>
</div>
<a class="anchor" id="a2ec73087db26ff4d2c4316c56f861db7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::VisitEnter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;&#160;</td>
          <td class="paramname"><em>doc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a document. </p>

<p>重载 <a class="el" href="class_ti_xml_visitor.html#a2661534963f39b74e29d1fc57918ab73">TiXmlVisitor</a> .</p>

</div>
</div>
<a class="anchor" id="a6dccaf5ee4979f13877690afe28721e8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::VisitEnter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;&#160;</td>
          <td class="paramname"><em>element</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_attribute.html">TiXmlAttribute</a> *&#160;</td>
          <td class="paramname"><em>firstAttribute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit an element. </p>

<p>重载 <a class="el" href="class_ti_xml_visitor.html#a3049fd47be339fd3caf561ec78754ac6">TiXmlVisitor</a> .</p>

</div>
</div>
<a class="anchor" id="a0a636046fa589b6d7f3e5bd025b3f33e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::VisitExit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;&#160;</td>
          <td class="paramname"><em>doc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a document. </p>

<p>重载 <a class="el" href="class_ti_xml_visitor.html#a8edb6c4d3e7db94bc2e7e79c7b12e028">TiXmlVisitor</a> .</p>

</div>
</div>
<a class="anchor" id="ae6a1df8271df4bf62d7873c38e34aa69"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::VisitExit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;&#160;</td>
          <td class="paramname"><em>element</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit an element. </p>

<p>重载 <a class="el" href="class_ti_xml_visitor.html#ab20597dab9db5818ebba675846f717fe">TiXmlVisitor</a> .</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a class="anchor" id="ae6cc56c79e52ef352ecc612809fdbedf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tinyxml_8h.html#a92bada05fd84d9a0c9a5bbe53de26887">TIXML_STRING</a> TiXmlPrinter::buffer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7e11330449daea912320c22f84387df7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int TiXmlPrinter::depth</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a672fda389bb3f5a2ae8ead867f9a2536"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tinyxml_8h.html#a92bada05fd84d9a0c9a5bbe53de26887">TIXML_STRING</a> TiXmlPrinter::indent</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a25e8120bcfda10cc06a11b2dedcef7fe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tinyxml_8h.html#a92bada05fd84d9a0c9a5bbe53de26887">TIXML_STRING</a> TiXmlPrinter::lineBreak</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2dceede5ae9bb8948f1ecaabb24ab2fb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TiXmlPrinter::simpleTextPrint</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>M:/移动硬盘/曹健/DX3D完成作业/619/D3DX封装/src/<a class="el" href="tinyxml_8h_source.html">tinyxml.h</a></li>
<li>M:/移动硬盘/曹健/DX3D完成作业/619/D3DX封装/src/<a class="el" href="tinyxml_8cpp.html">tinyxml.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2018年 七月 1日 星期日 22:10:11 , 为 My Project使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
